﻿using System;
using System.Collections.Generic;
using System.Data.Linq.Mapping;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Persistencia.Tabelas
{
    [Table(Name = "Empresas")]
    public class Empresas
    {

        [Column(IsPrimaryKey = true, IsDbGenerated = true)]
        public int Codigo { get; set; }

        [Column]
        public string Nome { get; set; }

        [Column]
        public string CNPJ { get; set; }

        [Column]
        public string Telefone { get; set; }

        [Column]
        public string Telefone2 { get; set; }

        [Column]
        public string Endereco { get; set; }

        [Column]
        public int Cep { get; set; }

        [Column]
        public string Cidade { get; set; }

        [Column]
        public int Numero { get; set; }

        [Column]
        public string Bairro { get; set; }

        [Column]
        public string UF { get; set; }

        [Column]
        public string PontoReferencia { get; set; }
        
        [Column]
        public string Complemento { get; set; }

        [Column]
        public string Banco { get; set; }

        [Column]
        public string Contato { get; set; }

        [Column]
        public string Email { get; set; }

        [Column]
        public string Servidor { get; set; }

        [Column]
        public int strConnectionResult { get; set; }

        [Column]
        public bool TipoEmpresa { get; set; }

        [Column]
        public string VersaoBanco { get; set; }

        [Column]
        public string RazaoSocial { get; set; }

        [Column]
        public string InscricaoEstadual { get; set; }

        [Column]
        public bool MatrizFilial { get; set; }
    }
}
